package com.xhwl.centiotdata.handler.eesd.impl;

import com.xhwl.centiotdata.handler.eesd.EesdFactory;
import com.xhwl.centiotdata.handler.eesd.EesdHandler;
import com.xhwl.centiotdata.pojo.dto.eesd.EesdConfigDTO;
import com.xhwl.centiotdata.pojo.enums.eesd.EesdMethodEnum;
import com.xhwl.centiotdata.suppliersystem.eesd.batown.BaApiHandler;
import com.xhwl.centiotdata.suppliersystem.eesd.wmzz.EesdWmzzApiHandler;
import com.xhwl.common.pojo.cent.device.DeviceProjSupplierCategory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * 望美制造
 */
@Service
public class EesdWmzzHandler extends EesdHandler {

    @Autowired
    private EesdWmzzApiHandler eesdWmzzApiHandler;

    @Override
    public void afterPropertiesSet() {
        EesdFactory.register(EesdMethodEnum.WMZZ.getId(), this);
    }

    @Override
    public void pullRecord(EesdConfigDTO eesdConfigDTO) {
        eesdWmzzApiHandler.pullRecord(eesdConfigDTO);
    }
}
